//
// Created by pengtg on 2020/3/5.
//

#ifndef ANDROIDVIDEOPLAYER_IPLAYERBUILDER_H
#define ANDROIDVIDEOPLAYER_IPLAYERBUILDER_H

#include "IPlayer.h"

class IPlayerBuilder
{
public:
    virtual IPlayer *BuilderPlayer(unsigned char index=0);

protected:
    virtual IDemux *CreateDemux() = 0;
    virtual IDecode *CreateDecode() = 0;
    virtual IResample *CreateResample() = 0;
    virtual IVideoView *CreateVideoView() = 0;
    virtual IAudioPlay *CreateAudioPlay() = 0;
    virtual IPlayer *CreatePlayer(unsigned char index=0) = 0;
};


#endif //ANDROIDVIDEOPLAYER_IPLAYERBUILDER_H
